/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package vista;

import java.awt.Graphics;
import java.awt.Image;
import javax.swing.JPanel;

/**
 *
 * @author heril
 */
public class PanelConFondo extends JPanel {

    private Image imagen;

    public void paint(Graphics g) {

        g.drawImage(imagen, 0, 0, getWidth(), getHeight(),
                this);
        setOpaque(false);
        super.paint(g);
    }

    public Image getImagen() {
        return imagen;
    }

    public void setImagen(Image imagen) {
        this.imagen = imagen;
    }
}
